<!DOCTYPE html>
{% load staticfiles %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="{%static 'css/bootstrap.min.css'%}">
    <title>Title</title>
</head>
<body>
<div style="margin-left: 100px ;margin-right: 100px ;margin-top: 30px">
    <form action="{%url 'editDbMessage'%}" method="post">
        {% csrf_token %}
        <input type="hidden" name="id" value="{{message.id | default:'0'}}"/>
        <div class="form-group">
            <label for="ip">ip</label>
            <input type="text" class="form-control" id="ip"
                   placeholder="请输入ip地址" value="{{message.ip_address}}">
        </div>
        <div class="form-group">
            <label for="port">port</label>
            <input type="text" class="form-control" id="port"
                   placeholder="请输入端口号" value="{{message.port}}">
        </div>
        <div class="form-group">
            <label for="db_name">db_name</label>
            <input type="text" class="form-control" id="db_name"
                   placeholder="请输入db_name" value="{{message.db_name}}">
        </div>
        <div class="form-group">
            <label for="username">username</label>
            <input type="text" class="form-control" id="username"
                   placeholder="请输入username" value="{{message.username}}">
        </div>
        <div class="form-group">
            <label for="password">password</label>
            <input type="text" class="form-control" id="password"
                   placeholder="请输入username" value="{{message.password}}">
        </div>
        <button type="submit" class="btn btn-default">提交</button>
    </form>
</div>
</body>
</html>